package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weixing.mall.provider.model.domain.Spec;
import com.weixing.mall.provider.model.query.SpecQuery;
import com.weixing.mall.provider.model.vo.SpecVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品模块-商品规格表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface SpecMapper extends BaseMapper<Spec> {

    /**
     * @Description 条件查询规格 <br/>
     * @author gjq
     * @date 2019/8/13 10:17
     * @param specQuery
     * @return java.util.List<com.weixing.mall.provider.model.vo.SpecVo>
     */
    List<SpecVo> selectList(@Param("qs")SpecQuery specQuery);

    Long selectByName(String name);
}
